package com.twohand.admin.Controller;

import com.twohand.admin.Annotation.Permission;
import com.twohand.admin.Dto.WxRefundListQueryDto;
import com.twohand.admin.Entity.WxRefund;
import com.twohand.admin.Service.IWxRefundService;
import com.twohand.admin.Util.PageResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.PathVariable;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ASDW
 * @since 2024-06-30
 */
@RestController
@RequestMapping("/pay/wxRefund")
public class WxRefundController {
    @Autowired
    IWxRefundService iWxRefundService;

    @Permission(value = "pay:refundlist")
    @GetMapping
    PageResponse<WxRefund> getWxRefundList(WxRefundListQueryDto wxRefundListQueryDto){
        return iWxRefundService.getAllWxRefundList(wxRefundListQueryDto);
    }

//    @GetMapping("/{id}")
//    WxRefund getWxRefundById(@PathVariable Integer id){
//        return iWxRefundService.getWxRefundById(id);
//    }
//
//
//    @PostMapping
//    Boolean insert(@RequestBody WxRefund wx_refund){
//        return iWxRefundService.insertWxRefund(wx_refund);
//    }
//
//    @PutMapping
//    Boolean update(@RequestBody WxRefund wx_refund){
//        return iWxRefundService.updateWxRefund(wx_refund);
//    }
//
//
//    @DeleteMapping("/{id}")
//    Boolean del(@PathVariable Integer id){
//        return iWxRefundService.deleteWxRefundById(id);
//    }
}
